<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>DrawArea.text4</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="DrawArea.htm">DrawArea</a>.<wbr>text4</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public TTFText text4(String text, String font, int fontIndex, double fontHeight, double fontWidth, double angle, boolean vertical)
</div>
<p class="heading2">Description</p>
<div class="content">
Creates a <a href="TTFText.htm">TTFText</a> object representing a text block.<br><br>
The TTFText object contains methods to measure and draw the text. This method is useful if the size of the text is needed before deciding where the draw it.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>text</td><td>(Mandatory)</td><td>A string representing the text to be drawn. <a href="cdml.htm">CDML</a></td></tr><tr><td>font</td><td>(Mandatory)</td><td>The font name. See <a href="fontspec.htm">Font Specification</a> for details on various font attributes.</td></tr><tr><td>fontIndex</td><td>(Mandatory)</td><td>The font index is ignored in the Java edition of ChartDirector and should be set to 0. It is solely for consistency and compatibility with other editions of ChartDirector.</td></tr><tr><td>fontHeight</td><td>(Mandatory)</td><td>The font height in points.</td></tr><tr><td>fontWidth</td><td>(Mandatory)</td><td>The font width in points.</td></tr><tr><td>angle</td><td>(Mandatory)</td><td>The rotation angle of the text.</td></tr><tr><td>vertical</td><td>(Mandatory)</td><td>This argument is for compatibility with older versions of ChartDirector. Always set it to false.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
The <a href="TTFText.htm">TTFText</a> object created.
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
